#ifndef RCMAEMO5DEFINES_H
#define RCMAEMO5DEFINES_H

#include "maemo5/maemo5defines.h"

#define MAEMO5_PLATFORMNAME "maemo5"
#define MAEMO5_SHORTDESC "Building for Maemo5 locally"


/**
  * Since "rcmaemo5" implementation reuses "maemo5"
  * implementation heavily, the generator phase values
  * used for "rcmaemo5" will have to be backward compatible
  * with the ones used for "maemo5", as those values are
  * used / set by the reused code.
  *
  * In addition to these, "rcmaemo5" has its own values too.
  */
enum RcMaemo5GeneratorPhase {
    // compatible with "maemo5" build
    RCM5_INITIAL            = M5_INITIAL,
    RCM5_UNZIP_WIDGET       = M5_UNZIP_WIDGET,
    RCM5_DPKG_BUILDPACKAGE  = M5_DPKG_BUILDPACKAGE,
    RCM5_ENDED_SUCCESSFULLY = M5_ENDED_SUCCESSFULLY,
    RCM5_ENDED_WITH_ERRORS  = M5_ENDED_WITH_ERRORS,

    // rcmaemo5 specific phases
    RCM5_PKGZIPPING,
    RCM5_PKGUPLOADING_WAITING,
    RCM5_DOWNLOADING,
};


/**
  * This operator let's you treat GeneratorPhase as if it was
  * the same enum type as Maemo5GeneratorPhase.
  */
bool operator==(const GeneratorPhase   & left,
                RcMaemo5GeneratorPhase   right);



#endif // RCMAEMO5DEFINES_H
